// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.WFSAddress;
import com.fowo.api.model.wfsaddress.WFSAddressItemVo;
import com.fowo.api.model.wfsaddress.WFSAddressSearchParamPo;
import com.fowo.api.model.wfsaddress.WFSAddressVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WFSAddressMapper extends BaseMapper<WFSAddress> {
  Page<WFSAddressItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") WFSAddressSearchParamPo search
  );
  List<OptionItem<WFSAddressItemVo>> searchOptions(
    @Param("search") WFSAddressSearchParamPo search
  );
  List<WFSAddressItemVo> search(
    @Param("search") WFSAddressSearchParamPo search
  );
  Date searchLastUpdateTime(@Param("search") WFSAddressSearchParamPo search);
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") WFSAddressSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") WFSAddressSearchParamPo search);
  Long getIdByPlatform(@Param("platform") String platform);

  List<Long> getIdsByPlatform(@Param("list") List<String> list);

  String getPlatformById(@Param("id") Long id);

  List<Map<String, Object>> getPlatformByIds(@Param("ids") List<Long> ids);
  WFSAddressVo selectVoById(@Param("id") Long id);
  /**
   * 发货地址
   */
  List<WFSAddressItemVo> shippingAddress(
    @Param("search") WFSAddressSearchParamPo search
  );

  /**
   * 获取发货地址编号列表
   */
  List<Long> shippingAddressIds(
    @Param("search") WFSAddressSearchParamPo search
  );

  /**
   * 获取发货地址的总数
   */
  Long shippingAddressCount(@Param("search") WFSAddressSearchParamPo search);

  /**
   * 发货地址分页
   */
  Page<WFSAddressItemVo> shippingAddressPage(
    @Param("page") Page page,
    @Param("search") WFSAddressSearchParamPo search
  );
  Date shippingAddressLastUpdateTime(
    @Param("search") WFSAddressSearchParamPo search
  );
  /**
   * 退货地址
   */
  List<WFSAddressItemVo> bacAddress(
    @Param("search") WFSAddressSearchParamPo search
  );

  /**
   * 获取退货地址编号列表
   */
  List<Long> bacAddressIds(@Param("search") WFSAddressSearchParamPo search);

  /**
   * 获取退货地址的总数
   */
  Long bacAddressCount(@Param("search") WFSAddressSearchParamPo search);

  /**
   * 退货地址分页
   */
  Page<WFSAddressItemVo> bacAddressPage(
    @Param("page") Page page,
    @Param("search") WFSAddressSearchParamPo search
  );
  Date bacAddressLastUpdateTime(
    @Param("search") WFSAddressSearchParamPo search
  );
}
